package com.gao.io;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public class FileOutputStreamDemo2 {
    /*
            IO流的异常处理方式：jdk版本7开始
     */
    public static void main(String[] args) {
        try( FileOutputStream stream = new FileOutputStream("E:A.txt")) {
            stream.write(97);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
